package com.example.app_mqttclient.activity;

import androidx.appcompat.app.AppCompatActivity;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

import com.example.app_mqttclient.R;

public class UserSettingActivity extends Activity {

    private static final String TAG = "UserSettingActivity";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_user_setting);


    }

    public void onClick_userSetting(View view)
    {
        switch (view.getId())
        {
            case R.id.user_setting_btn_back:
                Log.i(TAG, "user setting back btn onClick");
                finish();
                break;
            case R.id.user_setting_btn_login:

                Log.i(TAG, "user setting login btn onClick");
                break;
            case R.id.user_setting_btn_save:
                // 此editText必须在xml页面被创建后方可getText
//                EditText hostEditText = findViewById(R.id.user_setting_host_editText);
//                EditText portEditText = findViewById(R.id.user_setting_port_editText);

                Log.i(TAG, "user setting save btn onClick");
                break;
        }
    }
}